package yt.kpool.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.king.base.adapter.ViewHolderRecyclerAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.List;

import yt.kpool.R;
import yt.kpool.bean.BackWalletBean;
import yt.kpool.util.Util;


public class BackWalletAdapter extends ViewHolderRecyclerAdapter<BackWalletBean.DataBean> {




    public BackWalletAdapter(Context context, List<BackWalletBean.DataBean> listData) {
        super(context, listData);

    }

    @Override
    public View buildConvertView(LayoutInflater layoutInflater, int viewType) {
        return layoutInflater.inflate(R.layout.adapter_backwallet,null);
    }


    @Override
    public void bindViewDatas(ViewHolder holder, BackWalletBean.DataBean dataBean, int position) {
             holder.setText(R.id.tv_coin,dataBean.getCurrencyCode().toUpperCase());
             holder.setText(R.id.tv_blance, Util.Knumber(dataBean.getBalance()));
             holder.setText(R.id.tv_purse,dataBean.getAddress());
             holder.setText(R.id.tv_remark,dataBean.getRemark());
             holder.setText(R.id.tv_creatTime,dataBean.getCreatedTime());
             holder.setText(R.id.tv_update,dataBean.getModifyTime());
    }
}
